{{~
    name = x.name
    namespace_with_top_module = x.namespace_with_top_module
    comment = x.comment
    itemInfos = x.itemInfos
~}}

{{~if comment != '' ~}}
'''
{{comment | html.escape}}
'''
{{~end~}}
class {{x.py_full_name}}(Enum):
    {{~ for itemInfo in itemInfos ~}}
{{~if itemInfo.comment != '' ~}}
    '''
    {{itemInfo.escape_comment}}
    '''
{{~end~}}
    {{itemInfo.name}} = {{itemInfo.value}}
    {{~end~}}
    {{~if (itemInfos == empty)~}}
    pass
    {{~end~}}
